#ifndef IMPORTER_H
#define IMPORTER_H
//----------------------------------------------------------------
#include "Defines.h"
#include "Sprite.h"
#include "XMLParser.h"
//----------------------------------------------------------------
namespace ns
{
	class ENGINE_API Importer
	{
	public : 
		friend class Game;

		Importer(Renderer* renderer);
		~Importer();

		bool LoadResources(char* filename);
		bool CreateSprite(char* name, Sprite* sprite);			
		Texture::Ptr getTexture (const char* filename);
	
	private:
		//DANI
		bool importSprite (XMLNode& node);
		bool importTexture (const char* filename);

		Renderer* m_pRenderer;
		map<string, Sprite*> m_pSriteMap;
		map<string, Texture::Ptr> m_TextureMap;
		
		Sprite* m_pCurrentSprite;
	};
}
#endif 